package com.ming.mapper;

import com.ming.pojo.Xsdd;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface XsddMapper {

    @Select("select * from gyl_xsdd where ywy_id=#{ywyId}")
    List<Xsdd> searchByYwy(Integer YwyId);

    @Select("select * from gyl_xsdd")
    List<Xsdd> searchAll();

    @Select("select * from gyl_xsdd where ywy_name=#{ywyName} and custom_name=#{customName}")
    List<Xsdd> searchByName(String ywyName,String customName);//部门经理、总经理权限
}
